package com.base.service.impl;

import com.base.mapper.voipmapper.CarParkMapper;
import com.base.po.voip.CarPark;
import com.base.po.voip.CarParkExample;
import com.base.service.CarParkService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("carParkService")
public class CarParkServiceImpl implements CarParkService {
	
	@Autowired
	private CarParkMapper carParkMapper;

	@Override
	public int countByExample(CarParkExample example) {
		return carParkMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(CarParkExample example) {
		return carParkMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return carParkMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CarPark record) {
		return carParkMapper.insert(record);
	}

	@Override
	public int insertSelective(CarPark record) {
		return carParkMapper.insertSelective(record);
	}

	@Override
	public List<CarPark> selectByExample(CarParkExample example) {
		return carParkMapper.selectByExample(example);
	}

	@Override
	public List<CarPark> selectByUserIds(String userid) {
		return carParkMapper.selectByUserIds(userid);
	}

	@Override
	public List<CarPark> selectByOpenIds(String openid) {
		return carParkMapper.selectByOpenIds(openid);
	}

	@Override
	public List<CarPark> selectByMobiles(String mobile) {
		return carParkMapper.selectByMobiles(mobile);
	}

	@Override
	public List<CarPark> selectByAll(Page page, String parentId) {
		return carParkMapper.selectByAll(page, parentId);
	}

	@Override
	public List<CarPark> selectUserIdNull() {
		return carParkMapper.selectUserIdNull();
	}

	@Override
	public List<CarPark> selectOpenIdNull() {
		return carParkMapper.selectOpenIdNull();
	}

	@Override
	public List<CarPark> selectByNew() {
		return carParkMapper.selectByNew();
	}

	@Override
	public CarPark selectByPrimaryKey(String id) {
		return carParkMapper.selectByPrimaryKey(id);
	}

	@Override
	public CarPark selectByUserId(String userid) {
		return carParkMapper.selectByUserId(userid);
	}

	@Override
	public int updateByExampleSelective(CarPark record, CarParkExample example) {
		return carParkMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(CarPark record, CarParkExample example) {
		return carParkMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(CarPark record) {
		return carParkMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(CarPark record) {
		return carParkMapper.updateByPrimaryKey(record);
	}

	@Override
	public int countByAll(String parentId) {
		return carParkMapper.countByAll(parentId);
	}
}
